package cn.net.shuxing.yifu.common.mapper;


import cn.net.shuxing.yifu.common.bean.CoinType;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface CoinTypeMapper extends Mapper<CoinType> {

    @Select("SELECT id,name,simple_name,icon,state,deleted,create_time,update_time FROM coin_type WHERE deleted = 0 and (name like #{name} or simple_name like #{name})")
    public List<CoinType> getCoinTypeList(@Param("name") String name);
}

